<div class="row-fluid">

  <div class="portlet box blue">

  <div class="portlet-title">

    <div class="caption"> <i class="icon-reorder"></i>
      密码修改
    </div>
  </div>

  <div class="portlet-body form">
	<?php $form=$this->beginWidget('CActiveForm', 
      array("id"=>'userform',
      'enableClientValidation'=>true,
      'clientOptions'=>array(
        'validateOnSubmit'=>true,
      ),
      "htmlOptions"=>array(
          "class"=>"form-horizontal")
    )); ?>

        <?php echo $form->errorSummary($model,null,null,array("class"=>'alert alert-error')); ?>
        <?php 
        $success =yii::app()->user->getFlash('success');
        if (isset($success)) { ?>
        <div class="alert alert-success">
          <?php echo $success ?>
        </div>
       <?php } ?>
    <div class="control-group">
      <label class="control-label">旧密码:</label>
      <div class="controls">
        <?php echo  $form->passwordField($model,"oldpassword") ?>
        <?php $form->error($model,'oldpassword'); ?>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">新密码:</label>
      <div class="controls">
        <?php echo  $form->passwordField($model,"password") ?>
        <?php $form->error($model,'password'); ?>
      </div>
    </div>

     <div class="control-group">
      <label class="control-label">重复新密码:</label>
      <div class="controls">
        <?php echo  $form->passwordField($model,"password2") ?>
        <?php $form->error($model,'password2'); ?>
      </div>
    </div>
    
    <div class="form-actions">
      <button type="submit" class="btn blue"><i class="icon-ok"></i>确定</button>
    </div>
    <?php $this->endWidget(); ?>
  </div>
</div>